<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="music1">和你一起歌</div>
    <div id="music2">和你一起合</div>
    <p>
        我是马保国
        <strong>我会闪电五连鞭</strong>
    </p>
    <script>
        /* 
          innerHTML:对H5的代码进行渲染
          inner Text:只识别文本。
        */
        let p = document.querySelector('p');
        console.dir(p);

        // 读
        console.log(p.innerHTML);
        console.log(p.innerText);
        // 写
        let peng = document.querySelector('#music1');
        let lee = document.querySelector('#music2');

        music1.innerHTML = '<strong>我会闪电五连鞭</strong>';
        music2.innerText = '<strong>我会闪电五连鞭</strong>';
    </script>
</body>
</html>